export const validPhone = async (_rule, value) => {
  const reg = /^(13[0-9]|14[579]|15[0-35-9]|166|17[01345678]|18[0-9]|19[89])\d{8}$/
  if (!value) {
    return Promise.reject('请输入手机号')
  } else if (!reg.test(value)) {
    return Promise.reject('请输入正确的手机号')
  } else {
    return Promise.resolve()
  }
}
